<?php 
if(isset($this->mess)){
    if($this->flag == 'success')
        echo '<div class="bg-success">',$this->mess,'</div>';
    elseif($this->flag == 'alert')
        echo '<div class="bg-warning">',$this->mess,'</div>';
    else
        echo '<div class="bg-danger">',$this->mess,'</div>';
}
echo $this->loginForm;
